package com.ruoyi.lhky.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.lhky.mapper.V1Mapper;
import com.ruoyi.lhky.pojo.V1;
import com.ruoyi.lhky.util.R;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class V1Service extends ServiceImpl<V1Mapper, V1> {
    @Transactional
    public R addV1(V1 v1) {
        boolean result = save(v1);
        return new R(result, result ? "新增成功" : "新增失败");
    }
}
